﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using iLangl.Model;
using iLangl.LanguageWire.LWIntegration;

namespace iLangl.LanguageWire.Managers
{
	public class InvoiceManager : BaseManager
	{
		#region Singelton Pattern
		private InvoiceManager()
		{
		}

		private static InvoiceManager instance;
		private static object mutex = new object();
		/// <summary>
		/// The instance of the ProjectManager.
		/// </summary>
		public static InvoiceManager Instance
		{
			get
			{
				if (instance == null)
				{
					lock (mutex)
					{
						if (instance == null)
						{
							instance = new InvoiceManager();
						}
					}
				}
				return instance;
			}
		}
		#endregion

		public void CreateInvoice(BillingInfo bi)
		{
			DALFacadeLWAPI.InvoiceDAL.CreateInvoice(bi);
		}
	}
}

